<script setup lang="ts">
//  时间，正则，错误
 let d :Date = new Date();
 let reg:RegExp = /^1\d{10}/
 let err:Error = new Error('错误人类')
 if(reg.test("1359885974")){
  throw(err)
 }
//  对象
var obj:object = {
  name:"mumu",
  age:18
}
// dom
let body: HTMLElement = document.body;
console.log(body);
var divs: NodeList = document.querySelectorAll("div");
console.log(divs);
document.addEventListener("click",(e:MouseEvent)=>{
  console.log(e.target)
})


</script>

<template>
  <main>
   <h1>TypeScript学习</h1>
  <p class="myp">{{ d }}</p>   
  <p>{{ reg.test("13598859747") }}</p> 
  <p>{{ obj }}</p>
  </main> 
</template>

